import { base } from '@/config'
import http from '@/utils/request'

// 引导跳转
const guideApi = {
  // 引导跳转页列表
  getList: params => {
    return http.get(`${base.message}/jumpPage/list`, params)
  },
  // 新增引导跳转页
  add: params => {
    return http.postJson(`${base.message}/jumpPage/add`, params)
  },
  // 删除引导跳转页
  delete: id => {
    return http.post(`${base.message}/jumpPage/delete/${id}`)
  },
  // 获取引导跳转详情
  getDetail: id => {
    return http.get(`${base.message}/jumpPage/detail/${id}`)
  },
  // 隐藏引导跳转页
  hide: id => {
    return http.post(`${base.message}/jumpPage/hide/${id}`)
  },
  // 显示引导跳转页
  show: id => {
    return http.post(`${base.message}/jumpPage/show/${id}`)
  },
  // 修改引导跳转页
  update: params => {
    return http.postJson(`${base.message}/jumpPage/update`, params)
  }
}

export default guideApi
